package com.sac.approval.dao;

import com.sac.approval.domain.DelegateMappingDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 */
@Mapper
public interface DelegateMappingDao {

	DelegateMappingDO get(String userId,String agentUserId);

	DelegateMappingDO getValidDelegate(String userId);
	
	List<DelegateMappingDO> list(Map<String, Object> map);

	List<String> getAgentUserIdList(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(DelegateMappingDO delegateMapping);
	
	int update(DelegateMappingDO delegateMapping);
	
	int remove(String userId);
	
	int batchRemove(String[] userIds);
}
